import delimited using dxccsr/DXCCSR_v2020-3.CSV, clear 

foreach v of varlist * {
	replace `v' = subinstr(`v', "'", "", .)
}

list in 1/5

rename v1 dx_code
rename v2 dx_text
rename v3 def_ccsr_cat
rename v4 def_ccsr_desc

local v 4
forvalues n = 1/5 {
	local ++v
	rename v`v' cssr_cat_`n'
	local ++v
	rename v`v' cssr_desc_`n'
}

list in 1/3

drop in 1

save dxccsr/dxccsr, replace 
